import logging


print(logging.DEBUG)        #输出：10
print(logging.INFO)         #输出：20
print(logging.WARN)         #输出：30
print(logging.WARNING)      #输出：30
print(logging.ERROR)        #输出：40
print(logging.CRITICAL)     #输出：50

logging.basicConfig(filename='access.log',
                    level=logging.ERROR,
                    format='%(asctime)s %(message)s',
                    datefmt='%m/%d/%Y %I:%M:%S %p')


